package com.shaoyu.elasticsearch.service;

import com.shaoyu.elasticsearch.entity.ElasticsearchIndex;
import com.shaoyu.elasticsearch.entity.Product;
import org.elasticsearch.action.search.SearchResponse;

import java.util.List;
import java.util.Map;

public interface ElasticSearchSearchService {
    SearchResponse search(List<ElasticsearchIndex> indexList, Product product);

    SearchResponse search(Map param);

    /**
     * 空搜索 搜索某个索引和类型的所有数据
     * @param index 索引和类型
     * @return
     */
    SearchResponse search(ElasticsearchIndex index);
}
